package org.petstore.domain;

/**
 * 对应数据库上的 instock 0代表在货架上
 *
 * @projectName: MyWebProject
 * @package: org.petstore.domain
 * @className: ShoppingCart
 * @author: Eric
 * @description: TODO
 * @date: 2021/11/4 12:47
 * @version: 1.0
 */
public class ShoppingCart {
    private String userId;
    private String itemId;
    private int quantity;
    private int instock;

    @Override
    public String toString() {
        return "ShoppingCart{" +
                "userId='" + userId + '\'' +
                ", itemId='" + itemId + '\'' +
                ", quantity=" + quantity +
                ", instock=" + instock +
                '}';
    }

    public int getIsDelete() {
        return instock;
    }

    public void setIsDelete(int isDelete) {
        this.instock = isDelete;
    }

    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }

    public String getItemId() {
        return itemId;
    }

    public void setItemId(String itemid) {
        this.itemId = itemid;
    }

    public int getQuantity() {
        return quantity;
    }

    public void setQuantity(int quantity) {
        this.quantity = quantity;
    }
}
